<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="parent">
        <p class="one">1</p>
        <p class="one">2</p>
        <p class="one">3</p>
    </div>

    <script>
        var parent = document.getElementsByClassName("parent");
        console.log(parent[0]);
        var childs = parent[0].childNodes; 
        console.log(childs);
        console.log(childs.length);
    </script>
</body>

</html>